<template>
    <div class="main">
        <a-button style="width: 200px;height: 50px" @click="handleSubmit" type="primary">登录</a-button>
    </div>
</template>

<script>
  import { mapActions } from 'vuex'
  import Vue from 'vue'

  export default {
    methods: {
      ...mapActions(['Login']),
      handleSubmit (e) {
        const {
          Login
        } = this
        Vue.ls.set("Access-Token", '999999999', 7 * 24 * 60 * 60 * 1000)
        Login('')
        window.location.reload()
      }
    }
  }
</script>

<style lang="less" scoped>
</style>
